﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Data;

namespace Model
{
    public class DataInfo
    {
        /// <summary>
        /// 0-划款审单下载(跟踪单号)
        /// 1-妥投信息下载(物流单号)
        /// </summary>
        public int Type { get; set; }
        public FileInfo ExceFile { get; set; }
        public DataTable Table { get; set; }
        public List<FreightInfo> QueryResult { get; set; }
    }

    public class Item
    {
        /// <summary>
        /// 时间
        /// </summary>
        public DateTime? a { get; set; }
        /// <summary>
        /// 发件方编号
        /// </summary>
        public string b { get; set; }
        /// <summary>
        /// 收件方编号
        /// </summary>
        public string c { get; set; }
        public string d { get; set; }
        /// <summary>
        /// 物流状态
        /// </summary>
        public string z { get; set; }
    }

    public class Dat
    {
        /// <summary>
        /// 单号
        /// </summary>
        public string A { get; set; }
        /// <summary>
        /// 发件国编号
        /// </summary>
        public CountryEnum B { get; set; }
        /// <summary>
        /// 收件国编号
        /// </summary>
        public CountryEnum C { get; set; }
        /// <summary>
        /// 包裹状态,40-投递成功
        /// </summary>
        public int E { get; set; }
        /// <summary>
        /// 默认物流数据
        /// </summary>
        public Item Z0 { get; set; }
        /// <summary>
        /// 发件方物流数据
        /// </summary>
        public List<Item> Z1 { get; set; }
        /// <summary>
        /// 收件方物流数据
        /// </summary>
        public List<Item> Z2 { get; set; }
        /// <summary>
        /// 发件国家代码
        /// </summary>
        public string ln1 { get; set; }
        /// <summary>
        /// 收件国家代码
        /// </summary>
        public string ln2 { get; set; }
    }

    public class DataResult
    {
        public int Delay { get; set; }
        public string No { get; set; }
        public Dat Track { get; set; }
        public string Yt { get; set; }
    }

    public class YtClass
    {
        public int T { get; set; }
        public List<int> D { get; set; }
    }

    public class Result
    {
        public List<DataResult> dat { get; set; }
        public string Msg { get; set; }
        public int Ret { get; set; }
        public string G { get; set; }
    }
}
